import request from '@/utils/request.js'

const user = {
	getCodeImg() {
		return request({
			url: '/code',
			method: 'get',
		})
	},
	login(data) {
		return request({
			url: '/auth/login',
			method: 'post',
			data
		})
	},
	getInfo() {
		return request({
			url: '/system/user/getInfo',
			method: 'get'
		})
	}
}

export default user